package com.xxzuibang.day9.继承;

public class PC extends Computer{
    private String brand;

    public PC(String cpu, String memory, String disk, String brand) {
        super(cpu, memory, disk);
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public String getDetails() {
        return super.getDetails()+ "品牌为：" + brand;
    }
};
